/*
 * NewXQueryFrame.java
 */

package xq.ide.forms;

/**
 *
 * @author  ThorntonRP
 */
public class NewXQueryFrame extends javax.swing.JFrame {

	private static final long serialVersionUID = 4809022493561845333L;

    public NewXQueryFrame() {
        initComponents();
		editorTabbedPane.openNewDocument("text/xquery");
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        editorTabbedPane = new xq.swing.EditorTabbedPane();
        explorerTabbedPane = new xq.swing.ExplorerTabbedPane();
        outputTabbedPane = new xq.swing.OutputTabbedPane();
        borderSplitPane = new xq.swing.BorderSplitPane();
        statusPane = new xq.swing.StatusPane();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("xq/ide/forms/Bundle"); // NOI18N
        setTitle(bundle.getString("NewXQueryFrame.title")); // NOI18N

        borderSplitPane.setCenterComponent(editorTabbedPane);
        borderSplitPane.setEastComponent(null);
        borderSplitPane.setNorthComponent(null);
        borderSplitPane.setSouthComponent(outputTabbedPane);
        borderSplitPane.setSouthDividerLocation(300);
        borderSplitPane.setWestComponent(explorerTabbedPane);
        borderSplitPane.setWestDividerLocation(175);
        getContentPane().add(borderSplitPane, java.awt.BorderLayout.CENTER);

        javax.swing.GroupLayout statusPaneLayout = new javax.swing.GroupLayout(statusPane);
        statusPane.setLayout(statusPaneLayout);
        statusPaneLayout.setHorizontalGroup(
            statusPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 632, Short.MAX_VALUE)
        );
        statusPaneLayout.setVerticalGroup(
            statusPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 26, Short.MAX_VALUE)
        );

        getContentPane().add(statusPane, java.awt.BorderLayout.SOUTH);

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-640)/2, (screenSize.height-480)/2, 640, 480);
    }// </editor-fold>//GEN-END:initComponents

    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
			@Override
            public void run() {
                new NewXQueryFrame().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private xq.swing.BorderSplitPane borderSplitPane;
    private xq.swing.EditorTabbedPane editorTabbedPane;
    private xq.swing.ExplorerTabbedPane explorerTabbedPane;
    private xq.swing.OutputTabbedPane outputTabbedPane;
    private xq.swing.StatusPane statusPane;
    // End of variables declaration//GEN-END:variables

}
